<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Resource extends Model
{

    protected $fillable = ['yyyg_id'];//开启白名单字段
    //关联remark表
    public function remarks()
    {
        return $this->hasMany('App\Remark','resources_id','id');
    }

    //关联资源进程表
    public function process()
    {
        return $this->hasMany('App\Process','id','process_id');
    }


}
